﻿using System;
using System.Collections.Generic;
using NTTDATA.BEENChina.ResultCertification.Config;

namespace NTTDATA.BEENChina.ResultCertification.Checker.Date
{
    [Serializable]
    [VerfityAttribute(Id = "VerfityRq0225", Name = "问号记载_单一问号（任意一行）", CategoryType = EnumCategoryType.日期, Model = true)]
    public class VerfityRq0225 : VerfityOneResult
    {
        
        public override bool CheckResult(List<List<string>> result, string entryCommon)
        {
            bool bresult = false;
 
            foreach (var rowResult in result)
            {

                string entryRowsStr = string.Join("/", rowResult);

                string changeEntryRowsStr = entryRowsStr.Replace("/", string.Empty);


                if (changeEntryRowsStr.Contains("?") &&
                    changeEntryRowsStr.Length == 1)
                {
                    bresult = true;
                }
 

                if (bresult)
                    break;
            }

            if (bresult)
            {
                System.Console.WriteLine("VerfityRq0222");
            }

            return bresult;
        }


       
    }
}
